//
//  OnSaleListViewController.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/10.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "OnSaleListViewController.h"
#import "OrderInformationViewController.h"

@interface OnSaleListViewController ()
@property (nonatomic, strong) OnSaleViewModel *viewModel;

@end

@implementation OnSaleListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.viewModel = [[OnSaleViewModel alloc] initWithViewToViewModel:self.groupedTableView theSuperView:self.view];
    self.viewModel.type = self.type;
    kWeakSelf(self);
    self.viewModel.BlockSelecRow = ^(NSIndexPath *selt) {
        [weakself seleRow:selt];
    };
}

- (void)seleRow:(NSIndexPath *)ind
{
    OrderInformationViewController *vc = [OrderInformationViewController new];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
